places view: Spew less warnings
authorMatthias Clasen <mclasen@redhat.com>
Wed, 2 Sep 2015 05:28:57 +0000 (01:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Sep 2015 11:15:57 +0000 (07:15 -0400)
When running the testsuite with a local gvfs, we get a 'not supported'
error here, and the g_warning makes the test fail. Avoid that.

gtk/gtkplacesview.c

index fcb35b8823d19809a40250aa14d277271d3d6bd7..a2a8395a47254e534f4af158e15d6df39247768e 100644 (file)
@@ -1002,7 +1002,8 @@ network_enumeration_finished (GObject      *source_object,
 
   if (error)
     {
-      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+      if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+          !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED))
         g_warning ("Failed to fetch network locations: %s", error->message);
 
       g_clear_error (&error);